<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button onclick="handleClick()">aaa</button>
</body>
<script src="../jquery@1.8.3.min.js"></script>
<script src="./layer.js"></script>
<script>
  // https://developer.aliyun.com/article/227905
  function handleClick() {
    layer.open({
      type: 1,
      title: '标题',
      content: '<div>内容</div>',
      area: ['500px', '300px'],
      shadeClose: true,
      shade: 0.5,
      time: 1000,
      end: function () {
        console.log('关闭')
      }
    })
}
</script>
</html>